

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link type="text/css" rel="stylesheet" href="${createLinkTo(dir:'css/csslxh',file:'lxh.css')}">
	<title>Edit Userinfo</title>
</head>

<style>
	.tableGray td { height:26px } 
</style>

<body style="margin:0; overflow:auto">

<table width="100%" height="23" border="0" cellpadding="0" cellspacing="0" background="${createLinkTo(dir:'imagesmain',file:'grayListBg.gif')}">
  <tr>       
	<td width="50%" style="padding-top:2px;padding-left:10px;padding-right:15px" nowrap>
		<img src="${createLinkTo(dir:'imageslxh',file:'post.gif')}">
		<g:message code="lxh.func.edit"/><g:message code="lxh.display.detailName"/>
	</td>
	<td>&nbsp;</td>		
  </tr>  
</table>

<g:if test="${flash.message}">
	<div class="message">${flash.message}</div>
</g:if>

<g:hasErrors bean="${userinfoInstance}">
	<div class="errors">
		<g:renderErrors bean="${userinfoInstance}" as="list" />
	</div>
</g:hasErrors>

<g:form action="update" method="post" style="display:inline" >
	<input type="hidden" name="id" value="${userinfoInstance?.id}" />
	<input type="hidden" name="version" value="${userinfoInstance?.version}" />
	
	<table align="center" class="tableGray" cellpadding="0" cellspacing="1" style="margin-top:5px;">
	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="username"><g:message code="Userinfo.username"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:userinfoInstance,field:'username','errors')}">
	        	<input type="text" maxlength="50" id="username" name="username" value="${fieldValue(bean:userinfoInstance,field:'username')}" class="textccc" />
	        </td>
	    </tr> 
	    	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="realname"><g:message code="Userinfo.realname"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:userinfoInstance,field:'realname','errors')}">
	        	<input type="text" maxlength="50" id="realname" name="realname" value="${fieldValue(bean:userinfoInstance,field:'realname')}" class="textccc" />
	        </td>
	    </tr> 
	    	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="password"><g:message code="Userinfo.password"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:userinfoInstance,field:'password','errors')}">
	        	<input type="text" maxlength="30" id="password" name="password" value="${fieldValue(bean:userinfoInstance,field:'password')}" class="textccc" />
	        </td>
	    </tr> 
	    	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="sex"><g:message code="Userinfo.sex"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:userinfoInstance,field:'sex','errors')}">
	        	<g:select id="sex" name="sex" from="${userinfoInstance.constraints.sex.inList}" value="${userinfoInstance.sex}" ></g:select>
	        </td>
	    </tr> 
	    	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="birth"><g:message code="Userinfo.birth"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:userinfoInstance,field:'birth','errors')}">
	        	<g:datePicker name="birth" value="${userinfoInstance?.birth}" noSelection="['':'']"></g:datePicker>
	        </td>
	    </tr> 
	    	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="regtime"><g:message code="Userinfo.regtime"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:userinfoInstance,field:'regtime','errors')}">
	        	<g:datePicker name="regtime" value="${userinfoInstance?.regtime}" noSelection="['':'']"></g:datePicker>
	        </td>
	    </tr> 
	    	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="telephone"><g:message code="Userinfo.telephone"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:userinfoInstance,field:'telephone','errors')}">
	        	<input type="text" maxlength="30" id="telephone" name="telephone" value="${fieldValue(bean:userinfoInstance,field:'telephone')}" class="textccc" />
	        </td>
	    </tr> 
	    	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="mbphone"><g:message code="Userinfo.mbphone"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:userinfoInstance,field:'mbphone','errors')}">
	        	<input type="text" maxlength="15" id="mbphone" name="mbphone" value="${fieldValue(bean:userinfoInstance,field:'mbphone')}" class="textccc" />
	        </td>
	    </tr> 
	    	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="email"><g:message code="Userinfo.email"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:userinfoInstance,field:'email','errors')}">
	        	<input type="text" maxlength="50" id="email" name="email" value="${fieldValue(bean:userinfoInstance,field:'email')}" class="textccc" />
	        </td>
	    </tr> 
	    	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="address"><g:message code="Userinfo.address"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:userinfoInstance,field:'address','errors')}">
	        	<input type="text" maxlength="100" id="address" name="address" value="${fieldValue(bean:userinfoInstance,field:'address')}" class="textccc" />
	        </td>
	    </tr> 
	    	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="postcode"><g:message code="Userinfo.postcode"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:userinfoInstance,field:'postcode','errors')}">
	        	<input type="text" maxlength="10" id="postcode" name="postcode" value="${fieldValue(bean:userinfoInstance,field:'postcode')}" class="textccc" />
	        </td>
	    </tr> 
	    	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="orginfo"><g:message code="Userinfo.orginfo"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:userinfoInstance,field:'orginfo','errors')}">
	        	<g:select optionKey="id" from="${Orginfo.list()}" name="orginfo.id" value="${userinfoInstance?.orginfo?.id}" ></g:select>
	        </td>
	    </tr> 
	    	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="roleinfo"><g:message code="Userinfo.roleinfo"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:userinfoInstance,field:'roleinfo','errors')}">
	        	<g:select optionKey="id" from="${Roleinfo.list()}" name="roleinfo.id" value="${userinfoInstance?.roleinfo?.id}" ></g:select>
	        </td>
	    </tr> 
	    	
	            

	    <tr>
	    	<td align="center"  colspan="2" style="height:30">
	    		<input type="submit" value="<g:message code='lxh.btn.update'/>" class="btnGray">&nbsp;
	    		<input type="button" value="<g:message code='lxh.btn.cancel'/>" class="btnGray" onclick="history.back()">
	    	</td>
	    </tr>
	    
	</table>
	
</g:form>

                  

</body>
</html>
